


/**
 * 模块依赖
 */
var db = require("../lib/db");


//插入
exports.insert = function(apstadata, handler) {
    db.execQuery({
        "sql": "insert into scanapsta " +
            "(deviceid,devicemac,stamac,ssid,apmac,time,ssidlist,userid) values (?,?,?,?,?,?,?,?)",
        "args":[
            apstadata.deviceid,
            apstadata.devicemac,
            apstadata.stamac,
            apstadata.ssid,
            apstadata.apmac,
            apstadata.time,
            apstadata.ssidlist,
            apstadata.userid
        ],
        "handler": handler
    });
};


